package com.wangyadong.hobby.thread.lesson2;

/**
 * We want to use the standard Java pattern of event listeners to handle these
 * characters: a listener can register with a particular source and be notified when a new
 * character is available. That requires the typical set of Java classes for a listener
 * pattern, starting with the listener interface:
 */
public class CharacterEvent {
    //事件中包含一个资源
    public CharacterSource source;
    public int character;

    public CharacterEvent(CharacterSource cs, int c) {
        source = cs;
        character = c;
    }
}
